package com.itheima.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 封装响应结果
 */
@Data
@NoArgsConstructor //：生成无参构造器；
@AllArgsConstructor // :生成有参构造器
public class Result {
    private Integer code; //响应码
    private Object data; //封装成功的数据
    private String message; //封装失败的提示信息

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
